package com.zwjlg.module_other;

import android.os.Bundle;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.zwjlg.baselibrary.ARouterConstants;
import com.zwjlg.baselibrary.AUtils;

import io.noties.markwon.Markwon;

/**
 * ================================================
 * <p>
 * Created by ligang on 2021/4/3 0003 7:21
 * ================================================
 */
@Route(path = ARouterConstants.Activitys.OTHER_MARKDOWN)
public class OtherMarkdownActivity extends AppCompatActivity {
    TextView tvContent;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.other_activity_markdown);
        tvContent = findViewById(R.id.tv_content);
        Markwon markwon = Markwon.builder(this)
                .build();
        markwon.setMarkdown(tvContent, AUtils.readAssetsFile(this, "service.md"));
    }
}
